package com.tsd.base.dao;

import com.tsd.base.entity.BaseUnit;
import com.tsd.base.entity.BaseUnitExt;
import com.tsd.core.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseUnitMapper
 *
 * @author zsy
 * @date 2020/12/29 15:22:59
 */
public interface BaseUnitMapper {

    BaseUnit selectByPrimaryKey(Long id);

    BaseUnitExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(BaseUnit record);

    int insertSelective(BaseUnit record);

    int insertList(@Param("list") List<BaseUnitExt> list);

    int updateByPrimaryKey(BaseUnit record);

    int updateByPrimaryKeySelective(BaseUnit record);

    int updateList(@Param("list") List<BaseUnitExt> list);

    List<BaseUnitExt> selectByEntity(BaseUnit record);

    List<BaseUnitExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BaseUnitExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BaseUnitExt> selectByParams(@Param("params") Map<String, Object> params);

    int countValid();
}
